date_parse
Returns an associative array with detailed information about a given date
date_parse()
function returns an associative array containing the details of the specified date.
Returns an associative array containing the details of the specified date:
<?php print_r ( date_parse ( "2016-09-25 10:45:30.5" ) ) ; ?>
Try it yourself
date_parse ( date ) ;
parameter | describe |
---|---|
date | Required. Specify date (format accepted by strtotime() ). |